<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('quotaion_information', function (Blueprint $table) {
            $table->integer('plateform_id')->default(0)->comment('平台id');
            $table->integer('shop_id')->default(0)->comment('店铺id');
            $table->string('group_id')->default('')->comment('分组id');
            $table->string('old_object_name')->default('')->comment('修改前服务项目');
            $table->integer('department_id')->default(0)->comment('目前服务部');
            $table->integer('department_quote_id')->default(0)->comment('服务部信息管理');
            $table->integer('user_id')->default(0)->comment('员工id');
//            $table->integer('department_id')->default(0)->comment('部门id');
            $table->text('mark')->nullable()->comment('备注记录');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('quotaion_information', function (Blueprint $table) {
            $table->dropColumn('plateform_id');
            $table->dropColumn('group_id');
            $table->dropColumn('shop_id');
            $table->dropColumn('old_object_name');
            $table->dropColumn('department_id');
            $table->dropColumn('mark');
            $table->dropColumn('department_id');

        });
    }
};
